<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

    <meta content="旧书,二手书,二手教材,旧教材,校园书籍,校园旧书，旧书网" name="keywords">
    <meta content="买卖二手书，就上旧书街" name="description">
    <meta content="zh" name="language">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <link href="res/form.css" rel="stylesheet" type="text/css">
    <link href="res/pager.css" rel="stylesheet" type="text/css">
    <link href="res/styles.css" rel="stylesheet" type="text/css">
    <link href="res/ubm_basic.css" rel="stylesheet" type="text/css">
    <link href="http://cdnfile.jiushujie.com/images/ubm.ico"
          rel="shortcut icon" type="image/x-icon">

    <title>买卖二手书,就上旧书街</title>
</head>
<style>
    [v-cloak]{
        display: none;
    }
</style>
<body>
<div th:replace="index::div#header"></div>
<link href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" rel="stylesheet">
<script src="https://unpkg.com/element-ui/lib/index.js"></script>

<div class="main_middle" id="owner">
    <div class="center_980" id="main_content">
        <div class="content_left">
            <div class="user_left_nav" v-cloak>
                <div class="user_photo" >
                    <div >
                        <img :alt="t.user.name"
                             :src="t.user.head_img"
                             class="user_profile">
                    </div>
                    <div class="user_nav_info" >
                        <ul>
                            <li>{{t.user.account}}</li>
                            <li>{{t.user.gender}}</li>
                            <li>{{t.user.school}}</li>
                            <li>上次登录:&nbsp;{{t.user.regTime}}</li>
                            <li><a class="user_fan_faned_link"
                                   href="http://www.jiushujie.com/user/26398619/follow">关注(2)</a>&nbsp;<a
                                    class="user_fan_faned_link"
                                    href="http://www.jiushujie.com/user/26398619/fan">粉丝(30)</a></li>
                        </ul>
                    </div>
                </div>

                <div class="self_introduction">
                    姓名: {{t.user.name}}<br>手机:{{t.user.phone}}(下单后可见)<br>地址: {{t.user.addrDesc}}
                </div>
                <input class="button_user_action" name="yt0"
                       onclick="openLoginPageWithFrom();" style="width: 300px;" type="button"
                       value="详细联系方式下单后可见">
                <div class="clearfloat"></div>
            </div>


        </div>
        <div class="content_right">
            <div class="border_white padding_10">
                <div style="float: left; margin: -6px 0 -2px 10px; width: 100%;">
                    <ul class="mypage_nav">
                        <!--        <li>
        <a id="news_list_tab" href="/user/26398619/news">动态</a>
    </li>-->
                        <li><a class="selectedtab" href="/user/26398619/sell"
                               id="sell_list_tab">出售</a></li>
                        <!--        <li>
        <a id="buy_list_tab" href="/user/26398619/buy" >求购</a>
    </li>-->
                        <li><a href="/user/26398619/follow" id="follow_list_tab">关注</a>
                        </li>
                        <li><a href="/user/26398619/fan" id="fan_list_tab">粉丝</a></li>
                    </ul>
                </div>
                <div class="clearfloat"
                     style="border-top: 2px solid rgb(222, 222, 222); margin-bottom: 16px;"></div>
                <div style="margin-bottom: 10px; text-align: center;">
                    <form action="/user/26398619/sell" id="search_title_form"
                          method="get">
                        <input class="queryinput user_book_search_query"
                               id="q" name="q" placeholder="请输入关键字搜索"
                               type="text" value=""><input class="search_div_button user_book_search_button"
                                                      onclick="submitSearch();"
                                                      style="float: left;" type="button" value="搜 索">
                        <a class="button_link" href="addsell.htm">添加出售</a>
                    </form>
                </div>
                <div style="clear: both;"></div>
                <div style="margin-top: 15px;">
                    <div class="list-view" id="yw0">
                        <div class="items" v-for="o in user">
                            <div class="book_item dashed_border_bottom">
                                <div class="book_pic">
                                    <a :href="'book_'+o.id"
                                       target="_blank"> <img
                                            :alt="o.name"
                                            :src="o.pic"
                                            :title="o.name" class="book_pic">
                                    </a>
                                </div>
                                <div class="info">
                                    <div class="title">
                                        <a :href="'book_'+o.id" target="_blank">{{o.name}}</a>
                                    </div>
                                    <div class="detail padding_10">
                                        <div class="buy_action">
                                            <a class="button_link"
                                               href="javascript:addCart(390899617);">购&nbsp;&nbsp;买</a>
                                        </div>
                                        {{o.author}}/{{o.press}} <br>
                                        <br> ￥{{o.price}} &nbsp;&nbsp;<span class="line-through-price">￥{{o.markPrice}}</span>
                                        &nbsp;&nbsp;{{o.discount}} <br>
                                        <br> {{o.oldnew}}
                                    </div>
                                    <div class="align_right">
                                        <span style="margin-right: 20px;"> </span>
                                    </div>
                                </div>
                                <div class="clearfloat"></div>
                            </div>

                        </div>
                        <el-pagination
                                :total="total" background
                                layout="prev, pager, next" @current-change="query" page-size="10">
                        </el-pagination>
                        <div class="keys" style="display: none"
                             title="/user/26398619/sell">
                            <span>390899617</span><span>390968964</span><span>391741879</span><span>391741888</span><span>391742542</span><span>391742545</span><span>391742558</span><span>391742566</span><span>391742576</span><span>391742593</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clearfloat"></div>
    </div>
</div>
<script>
    var v = new Vue({
        el: "#owner",
        data: {
            user: [],
            total:0
        },
        created() {
            setTimeout(() => {
                // let params = new URLSearchParams();
                // params.append("account", t.user.account);
                // axios.post("jsj-user/jiushujie/jsjUser/getownerbooks", params).then(res => {
                //     this.user = res.data;
                //     console.info(res.data)
                // })
                this.query();
            }, 300)


        },
        methods:{
            query(page){
                page = page ||1;
                let  params=new URLSearchParams();
                params.append("id",t.user.id);
                params.append("size",10);
                params.append("page",page);
                axios.post("jsj-user/jiushujie/jsjUser/getownerbooksBypage",params).then(res=>{
                    this.user = res.data.list;
                    this.total = res.data.total;
                })
            }
        }
    })
</script>

<div style="border-bottom: 1px solid rgb(255, 255, 255);"></div>
<div style="position: fixed; top: 122px; right: 20px;">
    <img src="res/ios_download.jpg"
         style="width: 120px; margin-bottom: 10px;"><br> <img
        src="res/android_download.jpg"
        style="width: 120px; margin-bottom: 10px;">
</div>
<div class="clearfloat"></div>
<div class="bottom">
    <div class="center_980">
        <div class="bottom_left">
            <ul>
                <li><a href="http://www.jiushujie.com/site/about">关于我们</a></li>
                <li><a href="http://www.jiushujie.com/site/joinus">申请合作</a></li>
                <li><a href="http://www.jiushujie.com/site/privacy">隐私政策</a></li>
                <li><a href="http://www.jiushujie.com/site/term">服务条款</a></li>
                <li><a href="http://www.jiushujie.com/site/help">帮助</a></li>
                <li><a href="http://www.jiushujie.com/site/link">友情链接</a></li>
            </ul>
        </div>
        <div id="copyright">
            © 2020 by 旧书街 <a href="http://beian.miit.gov.cn/">蜀ICP备16007902号-2</a>
        </div>
    </div>
</div>
<h1 class="jiushujie_slogan">买卖二手书，就上旧书街。旧书街二手书交易网-您身边的旧书网站</h1>
</body>
</html>